<template>
    <!-- 小导航滑动条 -->
    <div class="demanddiv">

         <div class="header">
            <a><img @click="asideshow" class="mine" src="../../static/img/share_center/mine@2x.png" alt=""></a>
            <router-link to='/sent' class="headertitle">疾速发布</router-link>
            <router-link to="/share" class="headertitle">共享中心</router-link>
            <router-link to="/demand" style="color:#2a97ef">需求中心</router-link>
        </div>

        <div class="small_need small_need_div">
            <div>
                <router-link to="/demand/demand_urgent" class="sent_color" exact>急需需求</router-link>
                <router-link to="/demand/demand_waithelp" class="sent_color">等待求助</router-link>
            </div>
            <div>
                <span class="my_zhi">地图模式</span>
                
            </div>
        </div>
       <transition mode="out-in">
            <router-view></router-view>
        </transition>
    </div>

</template>

<script>
export default{
    props:["message"],
    data(){
        return {
            show:false,
        }
    },
    methods:{
        asideshow(){
            this.$emit("listenToChildEventshow",true);
            console.log(" asideshow向父组件传值:");
        },
        asidehiden(){
            this.$emit("listenToChildEventhiden",false);
            console.log("asidehiden向父组件传值:");
        }
    }
    
}
</script>

<style>
.v-enter
{
    opacity: 0;
    transform: translateX(100px);
}
.v-leave-to {
    opacity: 0;
    transform: translateX(-100px);
}
.v-enter-active,
.v-leave-active {
    transition: all 0.3s ease;
}
.demanddiv{
    width: 23rem;
}
.header{
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #FFFFFF;
    height: 50pxpx;
    border-bottom: solid 0.2px #C4C4C4;
}
.mine{
    padding-top: 3px;
    height: 25px;
    width: 25px;
}

.small_need{
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    justify-content:space-between;
    background-color:whitesmoke;
    height: 2.3rem;
}
.small_need_div{
    align-items: center;
    background-color: #FFFF;
    margin-bottom: 10px;
}
.my_zhi{
    font-size: 15px;
    color:aqua;
}
.sent_color{
    color: black;
    padding-right: 1rem;
}
.headertitle{
    color: black;
}
.router-link-active{
    color: #2a97ef;
}
</style>

